package cn.edu.zjgsu.service.impl;

import cn.edu.zjgsu.dao.UserDao;
import cn.edu.zjgsu.model.User;
import cn.edu.zjgsu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: wqmei
 * DateTime: 2017/11/9 10:51
 * Description:
 */
@Service
public class UserServiceImpl implements UserService
{
    @Autowired
    UserDao userDao;

    @Override
    public List<User> getUsers()
    {
        return userDao.findByHQL("from User");
    }
}
